package com.adtec.base.cloud.persistence.system.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(name = "全局日志")
public class GlobalLog {
    private Long id;

    @Schema(name = "url--请求url")
    private String url;

    @Schema(name = "method--请求method")
    private String method;

    @Schema(name = "username--请求用户")
    private String username;

    @Schema(name = "address--请求Ip地址")
    private String address;

    @Schema(name = "port--请求端口")
    private Integer port;

    @Schema(name = "status--响应状态")
    private String status;

    @Schema(name = "responseResult--请求返回体")
    private String responseResult;

    @Schema(name = "costTime--请求响应时间")
    private long costTime;

    @Schema(name = "createTime--请求时间")
    private LocalDateTime createTime;
}
